<form id="filtering-options" class="form-search" method="POST" style="background-color:#F7F7F9;padding:10px;border:1px solid #ccc;border-radius: 5px;display:none;">
  Search term: <input type="text" name="search" value="<?= $this->escape($this->filtering['search']) ?>" placeholder="Enter search term"> &nbsp; &nbsp; &nbsp; &nbsp;
  <br>
  <br>
  Cars Aged from: <input min="1910" max="<?= date('Y') ?>" type="number" id="cars_aged_from" name="cars_aged_from" style="width:100px;" value="<?= $this->filtering['cars_aged_from'] ?>" placeholder="Cars Aged from"> &nbsp; &nbsp; &nbsp; &nbsp;
  Cars aged to: <input min="1950" max="<?= date('Y') ?>" type="number" id="cars_aged_to" name="cars_aged_to" style="width:100px;" placeholder="Cars Aged to" value="<?= $this->filtering['cars_aged_to'] ?>">
  <br><br><strong>Manufacturer:</strong><br>
  <? foreach ($this->manufacturers as $manufacturer): ?>
  <label class="checkbox" style="margin-left:10px;">
    <input name="brands[]" value="<?= $manufacturer ?>" type="checkbox" <?= (isset($this->filtering['brands'][$manufacturer]))?'checked=checked':''; ?>> <?= $manufacturer ?> 
  </label>
  <? endforeach; ?>

  <br><strong>Transmission:</strong><br>
  <? foreach ($this->transmission as $transmission): ?>
  <label class="checkbox" style="margin-left:10px;">
    <input name="transmission[]" value="<?= $transmission ?>" type="checkbox" <?= (isset($this->filtering['transmission'][$transmission]))?'checked=checked':''; ?>> <?= $transmission ?> 
  </label>
  <? endforeach; ?>

  <br><strong>Fuel Type:</strong><br>
  <? foreach ($this->fueltype as $fueltype): ?>
  <label class="checkbox" style="margin-left:10px;">
    <input name="fuel[]" value="<?= $fueltype ?>" type="checkbox" <?= (isset($this->filtering['fuel'][$fueltype]))?'checked=checked':''; ?>> <?= $fueltype ?> 
  </label>
  <? endforeach; ?>
  <br>
  <br>
  <button type="submit" class="btn">Search</button>
</form>
<? if ($this->filteringMsg): ?>
<p><?= $this->filteringMsg ?></p>
<? endif ?>


<?
/*
  <p class="text-info text-right">Results count: <strong><?= count($this->valuationsListFiltered) ?></strong> out of <strong><?= count($this->valuationsList) ?></strong>.</p>
*/
?>

